﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.Workorders.Inventory
{
    /// <summary>
    /// 货品盘点表
    /// </summary>
    [Table("inventoryCheck")]
    public class InventoryCheck
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 货品编号
        /// </summary>
        [MaxLength(30)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 货品名称
        /// </summary>
        [MaxLength(30)]
        public string ProductName { get; set; }

        /// <summary>
        /// 盘点结果
        /// </summary>
        [MaxLength(30)]
        public string CheckResult { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [MaxLength(30)]
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [MaxLength(30)]
        public string Unit { get; set; }

        /// <summary>
        /// 货品类型
        /// </summary>
        [MaxLength(30)]
        public string ProductType { get; set; }

        /// <summary>
        /// 盘点单号
        /// </summary>
        [MaxLength(30)]
        public string CheckNo { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [MaxLength(30)]
        public string WarehouseName { get; set; }

        /// <summary>
        /// 账面数量
        /// </summary>
        public int? BookQuantity { get; set; }

        ///// <summary>
        ///// 实际盘点数量
        ///// </summary>
        //public int? actualCheckQuantity { get; set; }

        /// <summary>
        /// 盘盈数量
        /// </summary>
        public int? SurplusQuantity { get; set; }

        /// <summary>
        /// 盘亏数量
        /// </summary>
        public int? ShortageQuantity { get; set; }
    }
}
